package com.servlet.webqq.data;

import java.util.List;
import java.util.Map;
import java.util.Set;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPubSub;
import redis.clients.jedis.Transaction;
import redis.clients.jedis.Tuple;

public interface InnerJedis {
	public long zadd(String key,Map<String,Double> scoreMembers);
	public long zadd(String key,String number,Double score);
	public Set<Tuple> zrangeByScore(String key,String min,String max);
	public List<String> hmget(String key,String ...fields);
	public byte[] get(byte[] key);
	public String get(String key);
	public void set(String key,String value);
	public void subscribe(JedisPubSub pubsub,String ...channels);
	public Long publish(String channel,String message);
	public Jedis getJedis();
	public void unsubscribe(String ... Channels);
	public void unsubscribe();
	public void disconnect();
	public void watch(String ...keys);
	public Transaction multi();
	public void hmset(String key,Map<String,String> value);
	public void hmsetObject(String key,Object value,Class<?> objClass);
	public void jsonsetObject(String key,Object value,Class<?> objClass);
	public String hget(String key,String field);
	public void hset(String key,String field,String value);
	public boolean hsetnx(String key,String field,String value);
	public void unwatch();
}
